package com.code.day08JiCheng.ChouXxiang;

public abstract class Empoloyee {
    private String name;
    private int age;

    public Empoloyee() {
    }
//   如果抽象类里面没有赋值的够着方法就必须使用get  set  方法来进行调用
    public Empoloyee(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println(this.name+this.age);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    public abstract void work();
}
